/**
 * @file Client.h
 * 
 * @author your name (you@domain.com)
 * @brief 
 * @version 0.1
 * @date 2022-08-11
 * 文件需求：提供初始化函数， 提供发送某个文件的函数， 
 * @copyright Copyright (c) 2022
 * 
 */


#include<stdio.h>

typedef struct __ClientTypedef
{
    char send_file_path[40];
    FILE *send_file_fp;
    int socket_fd;
    int server_port;
    enum statusTypedef
    {
        waiting,
        sending
    }status;
}ClientTypedef;

/**
 * @brief 
 * 
 * @param client 
 * @return int 
 */
int ClientInit(ClientTypedef *client);

/**
 * @brief 客户端守护线程函数
 * 
 * @param client 
 * @return int 
 */
int ClientControl(ClientTypedef *client);

/**
 * @brief 
 * 
 * @param client 
 * @return int 
 */
int SendFile(ClientTypedef *client);